package com.xc.dao;

import com.xc.pojo.FundsTradingAccount;
import com.xc.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 权限
 */
@Mapper
@Repository
public interface RoleMapper {

    /**
     * [新增]
     * @author lr
     * @date 2020/07/24
     **/
    Integer insertRole(@Param("description") String description,@Param("name") String name);

    /**
     * [刪除]
     **/
    Integer deleteRole(@Param("roleId") Integer roleId);

    /**
     * [更新]
     **/
    Integer updateRole(@Param("roleId") Integer roleId, @Param("status") Integer status, @Param("description") String description,@Param("name") String name);

    void bandingRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);

    Integer selectByName(@Param("name") String name);


}
